//
//  AYHttpClient.h
//  SuiXin
//
//  Created by mac on 2023/10/9.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface AYHttpClient : NSObject

+ (void)post:(NSString *__nullable)urlString parameters:(NSDictionary *__nullable)params success:(void (^) (NSURLSessionDataTask *dataTask,id responseObjcet))success failure:(void (^)(NSURLSessionDataTask *dataTask,NSError *error))failure;

+ (void)post:(NSString *__nullable)urlString parameters:(NSDictionary *__nullable)params andFileParams:(NSDictionary *__nullable)fileParam andFileData:(NSData *)fileData success:(void (^) (NSURLSessionDataTask *dataTask,id responseObjcet))success failure:(void (^)(NSURLSessionDataTask *dataTask,NSError *error))failure;

+ (void)get:(NSString *__nullable)urlString parameters:(NSDictionary *__nullable)params success:(void (^) (NSURLSessionDataTask *dataTask,id responseObject))success failure:(void (^)(NSURLSessionDataTask *dataTask,NSError *error))failure;

+ (void)put:(NSString *__nullable)urlString tokenParams:(NSDictionary *__nullable)dic parameters:(NSDictionary *__nullable)params success:(void (^) (NSURLSessionDataTask *dataTask,id responseObject))success failure:(void (^)(NSURLSessionDataTask *dataTask,NSError *error))failure;

+ (void)getWithOutToken:(NSString *__nullable)urlString parameters:(NSDictionary *__nullable)params success:(void (^) (NSURLSessionDataTask *dataTask,id responseObject))success failure:(void (^)(NSURLSessionDataTask *dataTask,NSError *error))failure;

+ (void)deleteRequest:(NSString *__nullable)urlString tokenParams:(NSDictionary *__nullable)dic parameters:(NSDictionary *__nullable)params success:(void (^) (NSURLSessionDataTask *dataTask,id responseObject))success failure:(void (^)(NSURLSessionDataTask *dataTask,NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
